package webBeans;


import java.util.List;

import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import dto.BookingDTO;
import beansInterfaces.BookingMgr;

@ManagedBean(name="invitationBean")
@RequestScoped
public class InvitationBean {

	@EJB
	private BookingMgr bookingManager;
	
	private String username;
	
	private int idBooking;
	
	private List<BookingDTO> bookingInvitation;

	public void addInvitation(){
		bookingInvitation = bookingManager.getInvitation(username, idBooking);
	}
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public int getIdBooking() {
		return idBooking;
	}

	public void setIdBooking(int idBooking) {
		this.idBooking = idBooking;
	}

	public List<BookingDTO> getBookingInvitation() {
		return bookingInvitation;
	}

	public void setBookingInvitation(List<BookingDTO> bookingInvitation) {
		this.bookingInvitation = bookingInvitation;
	}
	
	
	
}
